<template>
  <!-- 开启顶部安全区适配 -->
  <!-- <van-nav-bar safe-area-inset-top /> -->
  <van-config-provider :theme-vars="themeVars">
    <router-view></router-view>
    <van-loading
      v-if="$store.state.globalLoading > 0"
      class="loading-box"
      type="spinner"
      color="#4e0684"
    ></van-loading>
  </van-config-provider>
  <!-- 开启底部安全区适配 -->
  <!-- <van-number-keyboard safe-area-inset-bottom /> -->
</template>
<script setup>
import { ref } from 'vue'
const themeVars = ref({
  noticeBarHeight: '0.5rem'
})
</script>
